package cn.crce.cloud9.simple;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月10日 上午 09:46
 */
public class Case24 {
    public static void main(String[] args) {
        Thread t = new SimpleThread("Testing_Thread");
        //*********Found**********
        t.start();
    }
}

//*********Found**********
class SimpleThread extends Thread {
    public SimpleThread(String str) {
        //*********Found**********
        this.setName(str);
    }

    //*********Found**********
    public void start() {
        System.out.println("Running the " + getName() + ":");
        for (int i = 0; i < 5; i++) {
            System.out.println("---" + i + "---" + getName());
            try {
                sleep((int) (2 * 100));
            }
            //*********Found**********
            catch (InterruptedException e) {
            }
        }
    }
}